﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Web.Security;

using System.Data.SqlClient;
using System.IO;

namespace GestaoContas
{
    public partial class Login : Form 
    {
        private string _user;

        public string User
        {
            get { return _user; }
            set { _user = value; }
        }

        private string _password;

        public string Password
        {
            get { return _password; }
            set { _password = value; }
        }

        public Login()
        {
            InitializeComponent();
        }

        private void buttonOK_Click(object sender, EventArgs e)
        {
            User = "!#$%&/()=";

            if (Membership.ValidateUser(textBoxUser.Text, maskedTextBoxPass.Text))
            {
                User = textBoxUser.Text;    // user validado
            }
        }

        private void buttonCancel_Click(object sender, EventArgs e)
        {
            //this.Close();
        }

    }
}
